package request

type AddGoodsReq struct {
	ProductName string  ` form:"product_name" json:"product_name" binding:"required"`
	Price       float64 ` form:"price" json:"price" binding:"required"`
	Cover       string  ` form:"cover" json:"cover" binding:"required"`
	Describe    string  ` form:"describe" json:"describe" binding:"required"`
}
type ModifyGoodsReq struct {
	Id          uint    ` form:"id" json:"id" binding:"required"`
	ProductName string  ` form:"product_name" json:"product_name" binding:"required"`
	Price       float64 ` form:"price" json:"price" binding:"required"`
	Cover       string  ` form:"cover" json:"cover" binding:"required"`
	Describe    string  ` form:"describe" json:"describe" binding:"required"`
}
type ListGoodsReq struct {
	Id          uint   ` form:"id" json:"id" binding:"required"`
	ProductName string ` form:"product_name" json:"product_name" binding:"required"`
}
type PageGoodsReq struct {
	Page        uint   `json:"page" form:"page"`
	PageSize    uint   `json:"page_size" form:"page_size"`
	ProductName string ` form:"product_name" json:"product_name"`
}
type DetailsGoodsReq struct {
	Id uint ` form:"id" json:"id" binding:"required"`
}
type RemoveGoodsReq struct {
	Id uint ` form:"id" json:"id" binding:"required"`
}
